<%@ page import="期中22.Pd" %>
<%@ page import="期中22.Thesql" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"

    pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

         <title>结果</title>

</head>

<body>
<%
  	try{
		int tid= Integer.parseInt(request.getParameter("tid")+"");
		//out.print("ok");
		
		Thesql the = new Thesql();
		the.del(tid);
 %>
 <script type="text/javascript" >
    alert("已删除");         //弹出提示框输出错误信息
    window.location='Themain.jsp' ;     //跳转到登录界面
 </script>
<%
  	}
  	catch(Exception e) {
  		e.printStackTrace();
  	}
%>


</body>


</html>